dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlHelper Class / ExecuteDataset Method / ExecuteDataset(String,String,MySqlParameter[]) Method
Settings to use for the connection.
The command to execute.
Parameters to use for the command.

In This Topic
    ExecuteDataset(String,String,MySqlParameter[]) Method
    In This Topic
    Executes a single SQL command and returns the resultset in a System.Data.DataSet. A new MySqlConnection object is created, opened, and closed during this method.
    Syntax
    'Declaration
     
    Public Overloads Shared Function ExecuteDataset( _
       ByVal connectionString As String, _
       ByVal commandText As String, _
       ByVal ParamArray commandParameters() As MySqlParameter _
    ) As DataSet
    public static DataSet ExecuteDataset( 
       string connectionString,
       string commandText,
       params MySqlParameter[] commandParameters
    )

    Parameters

    connectionString
    Settings to use for the connection.
    commandText
    The command to execute.
    commandParameters
    Parameters to use for the command.

    Return Value

    System.Data.DataSet containing the resultset.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also